import logging.config

def getlog(e):
    #  配置文件路径
    conf_file = '../config/log.conf'
    # 读取加载配置文件
    logging.config.fileConfig(conf_file)
    logger = logging.getLogger()
    logger.warning(e)